import request from '@/utils/request'

// 登录
export function login(data) {
    return request({
        url: '/auth/login',
        method: 'post',
        data: data
    })
}


export function register(data) {
  return request({
      url: '/auth/register',
      method: 'post',
      data: data
  })
}

// 获取用户详细信息
export function getInfo() {
    return request({
      url: '/auth/getInfo',
      method: 'get'
    })
}

// 退出
export function logout() {
    return request({
      url: '/auth/logout',
      method: 'post'
    })
  }